package com.codeduck.kafka.handler;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @auther Mahone Yan
 * @date 2023/5/7
 */
@Component("AcctDetailHandler")
public class AcctDetailMessageHandler extends IMessageHandler {
    private static final Logger LOGGER = LoggerFactory.getLogger(AcctDetailMessageHandler.class);

    public void consume(ConsumerRecord<Object, Object> record) {
        LOGGER.info("交易明细已保存至数据库[{}]", record.value().toString());
    }
}
